package Taxi_easy_main;

import java.awt.EventQueue;

import javax.swing.JInternalFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import java.awt.Dimension;
import javax.swing.JLabel;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import javax.swing.JTextField;
import java.awt.Font;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;

public class InternalVeriricacionSaldos extends JInternalFrame {
	private JTextField textField;
	private JTable table;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					InternalVeriricacionSaldos frame = new InternalVeriricacionSaldos();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public InternalVeriricacionSaldos() {
		setTitle("Verificacion de Saldos en la Tarjeta de Credito");
		setBounds(100, 100, 672, 419);
		getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));
		
		JPanel panel = new JPanel();
		getContentPane().add(panel);
		panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
		
		JPanel panel_2 = new JPanel();
		panel_2.setPreferredSize(new Dimension(10, 50));
		panel_2.setMinimumSize(new Dimension(10, 100));
		panel_2.setMaximumSize(new Dimension(32767, 100));
		panel_2.setFont(new Font("Tahoma", Font.BOLD, 15));
		panel.add(panel_2);
		
		JLabel lblIngreseNumeroDe = new JLabel("Ingrese Numero de TC :");
		panel_2.add(lblIngreseNumeroDe);
		
		textField = new JTextField();
		panel_2.add(textField);
		textField.setColumns(10);
		
		JButton btnNewButton_2 = new JButton("ACEPTAR");
		panel_2.add(btnNewButton_2);
		
		JButton btnNewButton_1 = new JButton("CANCELAR");
		panel_2.add(btnNewButton_1);
		
		JPanel panel_3 = new JPanel();
		panel.add(panel_3);
		
		table = new JTable();
		table.setFont(new Font("Tahoma", Font.BOLD, 14));
		table.setModel(new DefaultTableModel(
			new Object[][] {
				{"4567xxxxxxxxx05768", "50000.00"},
			},
			new String[] {
				"Numero de TC", "Saldo Actual"
			}
		));
		table.getColumnModel().getColumn(0).setPreferredWidth(181);
		table.getColumnModel().getColumn(1).setPreferredWidth(202);
		panel_3.add(table);
		
		JButton btnNewButton = new JButton("OK");
		panel_3.add(btnNewButton);
		
		JPanel panel_1 = new JPanel();
		panel_1.setMaximumSize(new Dimension(32767, 10));
		getContentPane().add(panel_1);
		panel_1.setLayout(new GridLayout(0, 1, 0, 0));
		
		JLabel lblTodosLosDerechos = new JLabel("Todos Los derechos reservados");
		panel_1.add(lblTodosLosDerechos);

	}

}
